package com.erli.exchange.core.beans.api;

import lombok.Getter;

@Getter
public enum ResultEnum {
    SUCCESS(0,"成功"),
    FAILURE(1, "失败"),
    LOGIN_FAILURE(2001, "用户名或密码不正确"),
    ACCOUNT_HAS_REGISTED(2002, "帐号已注册"),
    NOT_FOUND_EXCEPTION(404, "路径不存在，请检查路径是否正确"),
    SERVER_EXCEPTION(500, "服务器异常"),
    API_EXCEPTION(4000, "业务异常");
	
	
    private int code;
    private String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
